<h1><?php echo $title; ?></h1>
<div class="noprint">
<?php if (isset($notice) || $notice = $this->session->flashdata('notification')):?>
<p class="notice"><?php echo $notice;?></p>
<?php endif;?>

<?php if (!$rows) : ?>
<p class="notice"><?php echo __("Nessuno risultato", $module);?></p>
<?php endif; ?>

<script type="text/javascript">
$(document).ready(function(){
	$(".delete").click(function(){
		if (confirm("<?php echo __("Vuoi eliminare definitivamente la lettera?", $module) ?>"))
		{
			
			return true;
		} else {
			return false;
		}
	});
});
</script>
<?php
/*
<form name="form1" id="form1" method='post' action="<?php echo site_url('adozioni/lettere/gestione') ?>" >
<div class="filter">

<label for="seleziona"><?php echo __("Seleziona", $module) ?></label>
<select id="seleziona">
<option value=""><?php echo __("Niente", $module) ?></option>
<option value="tutti"><?php echo __("Tutti", $module) ?></option>
<option value="stampato"><?php echo __("Stampate", $module) ?></option>
<option value="dastampare"><?php echo __("Non stampate", $module) ?></option>
</select>
<input type="hidden" name="type" value="ringraziamenti" />
<input type="submit" name="stampa" id="stampa" value="<?php echo __("Stampa", $module) ?>" />

<input type="submit" name="elimina" id="elimina" value="<?php echo __("Elimina", $module) ?>" />

<input type="submit" name="segna_come_da_stampare" id="segna_come_da_stampare" value="<?php echo __("Segna come da stampare", $module) ?>" />

</div>
*/
?>
</div>
<table class="list" cellpadding=3 >
	<thead>
		<tr>
				<th width="3%" class="center">#</th>
				<th><?php echo __("Nome lettera", $module) ?></th>
				<th colspan="3" class="noprint"><?php echo __("Azione", $module)?></th>
		</tr>
	</thead>
	<tbody>
<?php if ($rows) : ?>
<?php $color = "color: #333" ; ?>
<?php $i = $start+1; foreach ($rows as $row): ?>
<?php $color = "color: #000"; ?>
<?php if ($i % 2 != 0): $rowClass = 'odd'; else: $rowClass = 'even'; endif;?>
		<tr class="<?php echo $rowClass?>">
				<td class="center" style="<?php echo $color ?>"><?php echo $i?></td>
				<td style="<?php echo $color ?>"><?php echo anchor('adozioni/lettere/show/'. $row['id'], $row['nome'], array('style' => $color)) ?></td>
				<td class="noprint"><?php echo anchor('adozioni/lettere/show/'. $row['id'], __("Visualizza", $module)) ?></td>
				<td class="noprint"><?php echo anchor('adozioni/lettere/delete/'. $row['id'], __("Elimina", $module), array('class' => 'delete')) ?></td>
		</tr>
<?php $i++; endforeach; ?>
<?php endif; ?>
</tbody>
</table>	
<?php /*</form>*/ ?>
<?php echo $pager; ?>
